# encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models

class Migration(SchemaMigration):

    def forwards(self, orm):
        
        # Adding field 'Product.price'
        db.add_column('catalog_product', 'price', self.gf('django.db.models.fields.FloatField')(default=datetime.date(2011, 7, 26)), keep_default=False)


    def backwards(self, orm):
        
        # Deleting field 'Product.price'
        db.delete_column('catalog_product', 'price')


    models = {
        'catalog.category': {
            'Meta': {'object_name': 'Category'},
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'id_sec': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalog.Section']"}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        'catalog.product': {
            'Meta': {'object_name': 'Product'},
            'description': ('tinymce.models.HTMLField', [], {'null': 'True', 'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'id_cat': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['catalog.Category']"}),
            'img': ('django.db.models.fields.files.ImageField', [], {'max_length': '100'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'price': ('django.db.models.fields.FloatField', [], {})
        },
        'catalog.section': {
            'Meta': {'object_name': 'Section'},
            'description': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        }
    }

    complete_apps = ['catalog']
